local thbattle__patchouli_tushu = fk.CreateSkill {

  name = "thbattle__patchouli_tushu",

  tags = { Skill.Compulsory, },

}



thbattle__patchouli_tushu:addEffect(fk.CardUsing, {
  anim_type = "drawcard",
  events = { fk.CardUsing },
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(thbattle__patchouli_tushu.name) and data.card.type == Card.TypeTrick and
        data.card:isCommonTrick()
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, thbattle__patchouli_tushu.name)
  end,
})

thbattle__patchouli_tushu:addEffect("targetmod", {
  bypass_distances = function(self, player, skill, card)
    return player:hasSkill("thbattle__patchouli_tushu") and card and card.type == Card.TypeTrick
  end,
})

return thbattle__patchouli_tushu